#ifdef USE_HEAP_TRACE
//==================================================================================================
#ifndef __USER_NEW_H__
#define __USER_NEW_H__

#include <new>
#include <cstddef>

#if __cplusplus < 201103L || defined(__ARMCC_VERSION)
#define __THROW_BAD_ALLOC throw(std::bad_alloc)
#else
#define __THROW_BAD_ALLOC
#endif

void* operator new(std::size_t size) __THROW_BAD_ALLOC;

void* operator new[](std::size_t size) __THROW_BAD_ALLOC;

void  operator delete(void* obj) throw();

void  operator delete[](void* obj) throw();

#endif /*__USER_NEW_H__*/
//==================================================================================================
#endif //#ifdef USE_HEAP_TRACE
